import Vue from 'vue';
import Vuex from 'vuex';
import VueRouter from 'vue-router';
import App from './components/App.vue';
import ElementUI from 'element-ui';
// import './assets/theme-chalk/index.css'; //修改element-ui样式
import 'element-ui/lib/theme-chalk/index.css'; //修改element-ui样式
import storeData from './tools/vuex-store';
import router from './tools/routes';
import api from './server/api';
import iView from 'iview';
import 'iview/dist/styles/iview.css';


import './assets/fonts/iconfont.js'
Vue.use(ElementUI);
Vue.use(VueRouter);
Vue.use(iView);
Vue.use(Vuex);


Vue.prototype.$api = api;
const store = new Vuex.Store(storeData);

window.mainVue = new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
});

